﻿ <!DOCTYPE html>
    <html>
    <head>
        <meta name="viewport" content="width=device-width" />
        <title>对接需求</title>

        <link rel="stylesheet" href="/sources/layui/css/layui.css" media="all" />
        <link rel="stylesheet" href="/sources/layui/css/layuimini.css" media="all" />
        <!-- Jquery Js -->
        <script type="text/javascript" src="/sources/jquery.min.js"></script>
        <!-- Layui Js -->
        <script type="text/javascript" src="/sources/layui/layui.js"></script>
        <script type="text/javascript" src="/sources/layui/layui.js?v=1.0.4" charset="utf-8"></script>

    </head>
    <body>
        <div>
<!--            @*表格*@-->
            <div style="width:100%;height:200px;margin:15px">
<!--                @*<div class="layui-btn-group demoTable">-->
<!--            <button data-method="offset" data-type="Add" class="layui-btn layui-btn-normal">+新增方案需求</button>-->
<!--            </div>*@-->
                <table id="table" lay-filter="demo" class="tableStyle" style="margin:0 auto"></table>
            </div>

            <script type="text/html" id="dockingNeeds_barDemo">
                <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
                {{#if (d.answerby==null||d.answerby==""){ }}
                <a class="layui-btn layui-btn-xs" lay-event="docking">对接</a>
                {{# } else if(d.answerby!=null&&d.answerby!=""&&d.answerby!="@Session["username"].ToString()") { }}
                <a class="layui-btn layui-btn-xs" lay-event="docked">已对接</a>
                {{#  }else{ }}
                <a class="layui-btn layui-btn-xs" lay-event="contact">联系</a>
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="cancelDocking">取消对接</a>
                {{#  } }}

            </script>
<!--                @*查看*@-->
                <div id="lookNeeds" style="display:none">
                    <form id="addForm_F" method="post" class="layui-form" action="">
                        <table class="tableForm">
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">名字：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_name" name="look_name" required lay-verify="required" placeholder="请填入名称" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">标题：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_title" name="look_title" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">行业：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_area" name="look_area" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">文件名称：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_upfile" name="look_upfile" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">创建人：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_createby" name="look_createby" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">创建时间：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_createtime" name="look_createtime" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">对接人：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_answerby" name="look_answerby" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">对接时间：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_answertime" name="look_answertime" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">状态：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_status" name="look_status" required lay-verify="required" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">是否有效：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="look_enabled" name="look_enabled" required lay-verify="required" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">描述：</label>
                                        <div class="layui-input-block">
                                            <textarea id="look_description" name="look_description" placeholder="" class="layui-textarea" readonly></textarea>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
<!--                @*联系*@-->
                <div id="user_contact" style="display:none">
                    <form id="addForm_Fa" method="post" class="layui-form" action="">
                        <table class="tableForm">
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">联系人：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="user_name" name="user_name" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">单位：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="user_unit" name="user_unit" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">职位：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="user_role" name="user_role" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">联系电话：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="user_phone" name="user_phone" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">Email：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="user_email" name="user_email" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">地址：</label>
                                        <div class="layui-input-block">
                                            <input type="text" id="user_address" name="user_address" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" readonly>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </form>
                </div>
        </div>
            <script src="/js/providers/dockingNeeds.js"></script>
        </body>

    </html>




